package com.gmail.blackdog1987.onedollar.entity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by dongguochao on 12/7/15.
 */
@Entity
@Table(name = "t_company_info", schema = "", catalog = "onedollar")
public class TCompanyInfoEntity {
    private int id;

    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    private String companyProfile;

    @Basic
    @Column(name = "company_profile", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getCompanyProfile() {
        return companyProfile;
    }

    public void setCompanyProfile(String companyProfile) {
        this.companyProfile = companyProfile;
    }

    private String culture;

    @Basic
    @Column(name = "culture", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getCulture() {
        return culture;
    }

    public void setCulture(String culture) {
        this.culture = culture;
    }

    private String profileBanner;

    @Basic
    @Column(name = "profile_banner", nullable = true, insertable = true, updatable = true, length = 200)
    public String getProfileBanner() {
        return profileBanner;
    }

    public void setProfileBanner(String profileBanner) {
        this.profileBanner = profileBanner;
    }

    private String cultureBanner;

    @Basic
    @Column(name = "culture_banner", nullable = true, insertable = true, updatable = true, length = 200)
    public String getCultureBanner() {
        return cultureBanner;
    }

    public void setCultureBanner(String cultureBanner) {
        this.cultureBanner = cultureBanner;
    }

    private String contactPhone;

    @Basic
    @Column(name = "contact_phone", nullable = true, insertable = true, updatable = true, length = 20)
    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    private String contactMan;

    @Basic
    @Column(name = "contact_man", nullable = true, insertable = true, updatable = true, length = 20)
    public String getContactMan() {
        return contactMan;
    }

    public void setContactMan(String contactMan) {
        this.contactMan = contactMan;
    }

    private String contactEmail;

    @Basic
    @Column(name = "contact_email", nullable = true, insertable = true, updatable = true, length = 30)
    public String getContactEmail() {
        return contactEmail;
    }

    public void setContactEmail(String contactEmail) {
        this.contactEmail = contactEmail;
    }

    private String cityid;

    @Basic
    @Column(name = "cityid", nullable = true, insertable = true, updatable = true, length = 10)
    public String getCityid() {
        return cityid;
    }

    public void setCityid(String cityid) {
        this.cityid = cityid;
    }

    private String address;

    @Basic
    @Column(name = "address", nullable = true, insertable = true, updatable = true, length = 50)
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    private String zipCode;

    @Basic
    @Column(name = "zip_code", nullable = true, insertable = true, updatable = true, length = 10)
    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    private String complainPhone;

    @Basic
    @Column(name = "complain_phone", nullable = true, insertable = true, updatable = true, length = 20)
    public String getComplainPhone() {
        return complainPhone;
    }

    public void setComplainPhone(String complainPhone) {
        this.complainPhone = complainPhone;
    }

    private String complainEmail;

    @Basic
    @Column(name = "complain_email", nullable = true, insertable = true, updatable = true, length = 30)
    public String getComplainEmail() {
        return complainEmail;
    }

    public void setComplainEmail(String complainEmail) {
        this.complainEmail = complainEmail;
    }

    private String mapImg;

    @Basic
    @Column(name = "map_img", nullable = true, insertable = true, updatable = true, length = 100)
    public String getMapImg() {
        return mapImg;
    }

    public void setMapImg(String mapImg) {
        this.mapImg = mapImg;
    }

    private Timestamp addTime;

    @Basic
    @Column(name = "add_time", nullable = true, insertable = true, updatable = true)
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    private Timestamp updateTime;

    @Basic
    @Column(name = "update_time", nullable = true, insertable = true, updatable = true)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    private String dealMap;

    @Basic
    @Column(name = "deal_map", nullable = true, insertable = true, updatable = true, length = 100)
    public String getDealMap() {
        return dealMap;
    }

    public void setDealMap(String dealMap) {
        this.dealMap = dealMap;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TCompanyInfoEntity that = (TCompanyInfoEntity) o;

        if (id != that.id) return false;
        if (companyProfile != null ? !companyProfile.equals(that.companyProfile) : that.companyProfile != null)
            return false;
        if (culture != null ? !culture.equals(that.culture) : that.culture != null) return false;
        if (profileBanner != null ? !profileBanner.equals(that.profileBanner) : that.profileBanner != null)
            return false;
        if (cultureBanner != null ? !cultureBanner.equals(that.cultureBanner) : that.cultureBanner != null)
            return false;
        if (contactPhone != null ? !contactPhone.equals(that.contactPhone) : that.contactPhone != null) return false;
        if (contactMan != null ? !contactMan.equals(that.contactMan) : that.contactMan != null) return false;
        if (contactEmail != null ? !contactEmail.equals(that.contactEmail) : that.contactEmail != null) return false;
        if (cityid != null ? !cityid.equals(that.cityid) : that.cityid != null) return false;
        if (address != null ? !address.equals(that.address) : that.address != null) return false;
        if (zipCode != null ? !zipCode.equals(that.zipCode) : that.zipCode != null) return false;
        if (complainPhone != null ? !complainPhone.equals(that.complainPhone) : that.complainPhone != null)
            return false;
        if (complainEmail != null ? !complainEmail.equals(that.complainEmail) : that.complainEmail != null)
            return false;
        if (mapImg != null ? !mapImg.equals(that.mapImg) : that.mapImg != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (dealMap != null ? !dealMap.equals(that.dealMap) : that.dealMap != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (companyProfile != null ? companyProfile.hashCode() : 0);
        result = 31 * result + (culture != null ? culture.hashCode() : 0);
        result = 31 * result + (profileBanner != null ? profileBanner.hashCode() : 0);
        result = 31 * result + (cultureBanner != null ? cultureBanner.hashCode() : 0);
        result = 31 * result + (contactPhone != null ? contactPhone.hashCode() : 0);
        result = 31 * result + (contactMan != null ? contactMan.hashCode() : 0);
        result = 31 * result + (contactEmail != null ? contactEmail.hashCode() : 0);
        result = 31 * result + (cityid != null ? cityid.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (zipCode != null ? zipCode.hashCode() : 0);
        result = 31 * result + (complainPhone != null ? complainPhone.hashCode() : 0);
        result = 31 * result + (complainEmail != null ? complainEmail.hashCode() : 0);
        result = 31 * result + (mapImg != null ? mapImg.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (dealMap != null ? dealMap.hashCode() : 0);
        return result;
    }
}
